package net.fdukedom.epicurus.resource;

/**
 * Is thrown when trying to register extension to non-existing extension point.
 *
 * @author Dmitry Kochelaev
 */
public class ExtensionPointNotFoundException extends Exception {

    /**
     * Name of extension point.
     */
    private String epointName;

    /**
     * Create exception out of e-point name.
     *
     * @param epointName name of e-point that was not found.
     */
    public ExtensionPointNotFoundException(String epointName) {
        super("Extension point not found: " + epointName);
        this.epointName = epointName;
    }

    /**
     * Returns extension point name.
     *
     * @return extension point name
     */
    public String getEpointName() {
        return epointName;
    }
}
